Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.capitalize

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.capitalize

The lodash method `_.capitalize` exported as a module.

  • 4.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is lodash.capitalize?

The lodash.capitalize npm package is a utility function from the Lodash library, specifically designed for capitalizing the first letter of a string while converting the rest of the string to lower case. This is particularly useful for formatting user input for display purposes.

What are lodash.capitalize's main functionalities?

String Capitalization

This feature capitalizes the first letter of the provided string and makes all other letters lowercase. It's useful for names, titles, or any case where proper capitalization is required.

const _ = require('lodash.capitalize');
console.log(_.capitalize('hello world')); // 'Hello world'

Other packages similar to lodash.capitalize

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc